]> dgit.raspbian.org Git - gnome-shell.git/commit
workspacesView: Center active workspace in allocation
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Wed, 30 Dec 2020 15:44:00 +0000 (12:44 -0300)
committerMarge Bot <marge-bot@gnome.org>
Wed, 3 Feb 2021 20:30:30 +0000 (20:30 +0000)
commited1170906b0c5ea3b8655b535f59605b9241c2f9
treea6d75065e702a5917c8484d3739030c25db138ec
parent1359b272a4f9db85a93160b3fe058cfcb7493b85
workspacesView: Center active workspace in allocation

When vertically snapping, WorkspacesView currently allocates workspaces
side-by-side, then applies an extra step of translation to center to
the active workspace. This extra step, however, gets in our way because
now we need tighter control of the workspaces positions in allocation,
in order to properly interpolate them.

Move the translation of workspaces to the allocation code itself, and
remove the extra translation step.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1613>
js/ui/workspacesView.js